﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoadSanPham_2TieuChi.ascx.cs" Inherits="DoAn.User_Control_NguoiDung.LoadSanPham_2TieuChi" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" 
    onactivetabchanged="ASPxPageControl1_ActiveTabChanged" 
    ontabclick="ASPxPageControl1_TabClick" Width="740px" 
    CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" 
    SpriteCssFilePath="~/App_Themes/Glass/{0}/sprite.css" TabSpacing="0px" 
    TabIndex="1">
    <TabPages>
        <dx:TabPage Text="Top new">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    <asp:DataList ID="DataList3" runat="server" RepeatColumns="3" Width="100%">
                        <ItemTemplate>
                            <dx:ASPxHyperLink ID="ASPxHyperLink3" runat="server" 
                                ImageUrl='<%# "~/BAN/HinhAnh/"+ Eval("HinhAnh") %>' ImageWidth="170px" 
                                NavigateUrl='<%# "~/ChiTietSanPham.aspx?masan="+Eval("MaSan") %>' 
                                Text="ASPxHyperLink" />
                            <br />
                            Tên :<asp:Label ID="Label4" runat="server" Font-Underline="False" 
                                Text='<%# Eval("TenSan") %>'></asp:Label>
                            <br />
                            Giá bán:<asp:Label ID="Label2" runat="server" 
                                Text='<%# String.Format("{0:0,0}vnd", Eval("GiaKhoiDiem")) %>' ForeColor="Red" ></asp:Label>
                            <br />
                            Người bán:<asp:Label ID="Label6" runat="server" 
                                Text='<%# Eval("TenTaiKhoan") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                </dx:ContentControl>
            </ContentCollection>
        </dx:TabPage>
        <dx:TabPage Text="Top san">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    <asp:DataList ID="DataList2" runat="server" RepeatColumns="3" Width="100%">
                        <ItemTemplate>
                            <dx:ASPxHyperLink ID="ASPxHyperLink2" runat="server" 
                                ImageUrl='<%# "~/BAN/HinhAnh/"+ Eval("HinhAnh") %>' ImageWidth="170px" 
                                NavigateUrl='<%# "~/ChiTietSanPham.aspx?masan="+Eval("MaSan") %>' 
                                Text="ASPxHyperLink" />
                            <br />
                            Tên :<asp:Label ID="Label1" runat="server" Font-Underline="False" 
                                Text='<%# Eval("TenSan") %>'></asp:Label>
                            <br />
                            Giá bán:<asp:Label ID="Label2" runat="server" 
                                Text='<%# String.Format("{0:0,0}vnd", Eval("GiaKhoiDiem")) %>' ForeColor="Red" ></asp:Label>
                            <br />
                            Người bán:<asp:Label ID="Label3" runat="server" 
                                Text='<%# Eval("TenTaiKhoan") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                </dx:ContentControl>
            </ContentCollection>
        </dx:TabPage>
    </TabPages>
    <LoadingPanelImage Url="~/App_Themes/Glass/Web/Loading.gif">
    </LoadingPanelImage>
    <Paddings PaddingLeft="0px" />
    <ContentStyle>
        <Border BorderColor="#4986A2" />
    </ContentStyle>
</dx:ASPxPageControl>

